package org.example.email.service;

import org.example.email.service.impl.EmailFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="service-email",fallback = EmailFeignServiceFallback.class,path = "/email")
public interface EmailFeignService {

    @GetMapping("/{email}/{code}")
    boolean sendCode(@PathVariable("email") String email, @PathVariable("code") String code);

}
